import { createApp } from 'vue'
import App from './App.vue'
import { setupAssets } from '@/plugins'
import { setupStore } from '@/store'
import { setupRouter } from '@/router'
import 'bootstrap/dist/css/bootstrap.min.css'
import {
  // create naive ui
  create,
  // component
  NButton,
  NUpload,
  NDivider
} from 'naive-ui'
const naive = create({
  components: [NButton,NUpload,NDivider]
})

async function bootstrap() {
  const app = createApp(App)
  app.use(naive)
  setupAssets()

  setupStore(app)

  await setupRouter(app)

  app.mount('#app')
}

bootstrap()
